package com.atung.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.atung.dao.BusProvinceCityDAO;
import com.atung.model.BusProvinceCity;
import com.atung.response.ResponseProvinceCity;

import cn.hutool.core.bean.BeanUtil;

@Service
public class BusProvinceCityService {

	@Autowired
	private BusProvinceCityDAO busProvinceCityDAO;
	/**
	 * 更具省获取市信息
	 * @param province
	 * @return
	 */
	public List<ResponseProvinceCity> selecyBusProvinceCityByprovince(String province){
		List<ResponseProvinceCity> responseProvinceCityList=new ArrayList<ResponseProvinceCity>();
//		List<BusProvinceCity> busProvinceCityList=busProvinceCityDAO.selecyBusProvinceCityByprovince(province);
//		for(BusProvinceCity busProvinceCity:busProvinceCityList){
//			ResponseProvinceCity responseProvinceCity=new ResponseProvinceCity();
//			BeanUtil.copyProperties(busProvinceCity, responseProvinceCity);
//			responseProvinceCityList.add(responseProvinceCity);
//		}
		return responseProvinceCityList;
	}
	
	public List<String> selecyBusProvinceProvince() {
		// TODO 自动生成的方法存根
		return busProvinceCityDAO.selecyBusProvinceProvince();
	}
}
